<div id="list-products">
	<?php if ($this->listAll != null):?>
<div style="height: 35px;">
	<h2 class="partner-title" style="width: 25%;">Nome</h2>
	<h2 class="partner-title" style="width: 15%;">Empresa</h2>
	<h2 class="partner-title" style="width: 15%;">Ano</h2>
	<h2 class="partner-title" style="width: 15%;">Preço</h2>
	<h2 class="partner-title" style="width: 15%;">Qtd Estoque</h2>
	<h2 class="partner-title" style="width: 15%;">Disponível</h2>
</div>

<dl>
<?php foreach ($this->listAll as $result):?>
	<dt>
		<a title="<?php echo $result['name']?>" href="/admin/view-edit?product=<?php echo $result['id_product']?>" class="transaction" style="width: 25%;"
			name="<?php echo $result['name']?>"> 
			<?php if(strlen($result['name']) > 30):?>
				<?php echo substr($result['name'], 0, 30).'...'?> 
			<?php else:?>
				<?php echo $result['name']?>
			<?php endif;?>
		</a> 
		<a href="/admin/view-edit?product=<?php echo $result['id_product']?>" class="transaction" style="width: 15%;"
			name="<?php echo utf8_encode($result['title'])?>"> 
			<?php if(strlen(utf8_encode($result['title'])) > 17):?>
				<?php echo substr(utf8_encode($result['title']), 0, 17).'...'?> 
			<?php else:?>
				<?php echo utf8_encode($result['title'])?>
			<?php endif;?>
		</a>
		<a href="/admin/view-edit?product=<?php echo $result['id_product']?>" class="transaction" style="width: 15%;"
			name="<?php echo $result['year']?>"> <?php echo $result['year'];?>
		</a> 
		<a href="/admin/view-edit?product=<?php echo $result['id_product']?>" class="transaction" style="width: 15%;"
			name="<?php echo $result['price']?>"> <?php echo $result['price'];?>
		</a> 
		<a href="/admin/view-edit?product=<?php echo $result['id_product']?>" class="transaction" style="width: 15%;"
			name="<?php echo $result['quantity']?>"> 
			<?php echo $result['quantity']?>
		</a>
		<input  style="width: 15%;" class="disponivel" type="checkbox" <?php echo 'alt = "' . $result['id_product'] . '"'; if($result['status']) { echo 'checked="checked"';}?>>
	</dt>
	<dd>
		<ul>
			<li>
				<div id="<?php echo $request['id_transaction']?>"></div>
			</li>
		</ul>
	</dd>
	<?php endforeach;?>
	<!-- PAGINAÇÃO -->
		<?php echo $this->paginationControl($this->listAll, 'Sliding', '/admin/_pagination-solicitation.phtml'); ?>
	<!-- [END] PAGINAÇÃO -->
</dl>
	<?php else:?>
<div class="nothing">
	<p>Nenhum pedido foi efetuado!</p>
</div>
<?php endif;?>
</div>